import 'package:flutter_cost/module/bill/binding.dart';
import 'package:flutter_cost/module/bill/detail/binding.dart';
import 'package:flutter_cost/module/bill/detail/view.dart';
import 'package:flutter_cost/module/bill/view.dart';
import 'package:flutter_cost/module/main/binding.dart';
import 'package:flutter_cost/module/main/view.dart';
import 'package:flutter_cost/module/splash/binding.dart';
import 'package:flutter_cost/module/splash/view.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';

class RouteConfig {

  ///根页面
  static const String index = "/index";
  static const String main = "/main";
  static const String addBill = "/add/bill";
  static const String billDetail = "/bill/detail";

  ///别名映射页面
  static final List<GetPage> getPages = [
    GetPage(
      name: index,
      page: () => SplashPage(),
      binding: SplashBinding(),
    ),
    GetPage(
      name: main,
      page: () => MainPage(),
      binding: MainBinding(),
    ),
    GetPage(
      name: addBill,
      page: () => BillPage(),
      binding: BillBinding(),
    ),
    GetPage(
      name: billDetail,
      page: () => BillDetailPage(),
      binding: BillDetailBinding(),
    ),
  ];
}